import axios from '@/plugins/axios'

// 一周内新注册候选人
export async function candidateListByWeek (params) {
  try {
    let res = await axios.post(`/jobboard/jobboardcandidates/candidate/candidateListByWeek`, params)
    return res.data
  } catch (err) {
    console.log(err)
    return err.response.data
  }
}
// 当前在线人数
export async function candidateListOnLine (params) {
  try {
    let res = await axios.post(`/jobboard/jobboardcandidates/candidate/candidateListOnLine`, params)
    return res.data
  } catch (err) {
    console.log(err)
    return err.response.data
  }
}
